package com.heys.api;

import java.io.Console;
import java.util.Scanner;

/**
 * Format
 */
public class Format {

    public static void main(String[] args) {
    //    Console con =  System.console();
    //     String name = con.readLine("%s:","姓名");
    //     System.out.printf("name:%s \n",name);

    //    char[] p =  con.readPassword("%s:","密码");
    //     System.out.printf("password:%s \n",new String(p));

        Scanner scanner = new Scanner(System.in);
        System.out.printf("请输入您的名称：");
        System.out.printf("您的名称：%s\n",scanner.nextLine());
    }
}